<div id="content">
<?php
include("./PDO/PdoPays.php"); //On inclut les fonctions PDO (create / update etc...)
include("./class/Pays.php"); //On inclut les fonctions PDO (create / update etc...)

$pays = new PdoPays();
$pays = $pays->readAll();
?>
    <form id="validate_form" action="index.php?route=lieu&action=traitement_ajout" method="post">
    
    Nom :<textarea name="NOMLIEU" id="NomLieu" class="validate[required]"></textarea><span id="mess_exist"></span>
    <br/>
    Adresse du lieu :<textarea name="ADRESSELIEU" id="AdresseLieu" class="validate[required]"></textarea><span id="mess_exist"></span>
    <br/>
    Code postal :<textarea name="CODEPOSTALLIEU" id="CodePostalLieu" class="validate[required]"></textarea><span id="mess_exist"></span>
    <br/>
    Ville :<textarea name="VILLELIEU" id="VilleLieu" class="validate[required]"></textarea><span id="mess_exist"></span>
    <label>Pays</label>
    <select name="IDPAYS" size="1">
        <?php
        foreach ($pays as $unpays) {
            echo '<option value="' . $unpays["IDPAYS"] . '">' . $unpays["NOMPAYS"] . '</option>';
        }
        ?>
    </select> 
    
    <input type="submit" id="valider" />
</form>
</div>